package com.wing.cabinet.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.cabinet.model.entity.CellInventoryInoutDetail;
import com.wing.cabinet.model.response.CellInventoryInoutDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 售刀柜上货(上货主表无展示)/领取明细-Dao
 *
 * @author
 */
@Mapper
public interface CellInventoryInoutDetailDao extends BaseMapper<CellInventoryInoutDetail> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CellInventoryInoutDetailVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<CellInventoryInoutDetailVO> list4app(@Param("page") Page<CellInventoryInoutDetailVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CellInventoryInoutDetailVO get4appById(Long id);

    /**
     * 根据上货id查询数详情
     * @param inoutId
     * @return
     */
    CellInventoryInoutDetailVO getByInoutId(Long inoutId);

    /**
     * 查询当月数据
     * @return
     */
    List<CellInventoryInoutDetailVO> getTheMonthData();
}
